import { getRequest, postRequest } from '/src/lib/axios'

// 业务员查代理商列表
export function exhibitionAgentPage(param) {
  return postRequest('/b-operation/agent/pageByExhibition', param)
}

export const agentApi = {
  // 添加代理商
  addAgent: (param) => {
    return postRequest('/b-operation/agent/insert', param)
  },
  // 更新代理商
  updateAgent: (param) => {
    return postRequest('/b-operation/agent/update', param)
  },
  // 代理商重置密码
  resetPassword: (param) => {
    return postRequest(`/b-operation/agent/reset_password`, param)
  },
  // 分页查询代理商
  page: (param) => {
    return postRequest('/b-operation/agent/page', param)
  },
  // 查询单个代理商
  findOne: (param) => {
    return postRequest('/b-operation/agent/find_id', param)
  },
}
